import {createRouter, createWebHashHistory} from 'vue-router'

const routes = [
    {
        path: '/',
        component: () => import('@views/Home.vue')
    },
    {
        path: '/home',
        component: () => import('@views/Home.vue')
    },
    {
        path: '/user',
        component: () => import(/* webpackChunkName: 'ImportFuncDemo' */ '@/views/User.vue')
    },
    {
        path: '/role',
        component: () => import('@views/Role.vue')
    }
]
const router = createRouter({
    routes,
    history: createWebHashHistory()
})

export default router